/*
 * @Descripttion: 通识报表头配置
 * @Author: caijj
 * @Date: 2020-12-07 14:39:12
 * @LastEditors: caijj
 * @LastEditTime: 2020-12-07 14:39:48
 */
const columns = [
  {
    prop: 'rowLabel',
    key: 'rowLabel',
    label: '   行标签   ',
    width: '250px',
    align: 'left',
    tooltip: true
  },
  {
    prop: 'sales-revenue',
    key: 'sales-revenue',
    label: '销售收入(元)',
    children: [
      {
        prop: 'salesIncome',
        key: 'salesIncome',
        width: '100%',
        label: '销售收入'
      },
      {
        prop: 'salesIncomeBudgetAchievingRate',
        key: 'salesIncomeBudgetAchievingRate',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '预算达成率',
        className: null
      },
      {
        prop: 'salesIncomeMom',
        key: 'salesIncomeMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'salesIncomeYoy',
        key: 'salesIncomeYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比',
        className: null
      },
      {
        prop: 'salesIncomeRate',
        key: 'salesIncomeRate',
        width: '100%',
        toPercent: true,
        label: '占比'
      }
    ]
  },
  {
    prop: 'customer-unit-price',
    key: 'customer-unit-price',
    label: '客单价(元)',
    children: [
      {
        prop: 'receipt',
        key: 'receipt',
        width: '100%',
        label: '客单价'
      },
      {
        prop: 'receiptBudgetAchievingRate',
        key: 'receiptBudgetAchievingRate',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '预算达成率',
        className: null
      },
      {
        prop: 'receiptMom',
        key: 'receiptMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'receiptYoy',
        key: 'receiptYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比',
        className: null
      }
    ]
  },
  {
    prop: 'number-of-customers',
    key: 'number-of-customers',
    label: '客单数',
    children: [
      {
        prop: 'receiptCount',
        key: 'receiptCount',
        width: '100%',
        label: '客单数'
      },
      {
        prop: 'receiptCountBudgetAchievingRate',
        key: 'receiptCountBudgetAchievingRate',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '预算达成率',
        className: null
      },
      {
        prop: 'receiptCountMom',
        key: 'receiptCountMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'receiptCountYoy',
        key: 'receiptCountYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比',
        className: null
      }
    ]
  },
  {
    prop: 'front-desk-gross-profit',
    key: 'front-desk-gross-profit',
    label: '前台毛利(元)',
    children: [
      {
        prop: 'frontGrossProfit',
        key: 'frontGrossProfit',
        width: '100%',
        label: '前台毛利'
      },
      {
        prop: 'frontGrossProfitBudgetAchievingRate',
        key: 'frontGrossProfitBudgetAchievingRate',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '预算达成率',
        className: null
      },
      {
        prop: 'frontGrossProfitMom',
        key: 'frontGrossProfitMom',
        markStyle: true,
        toPercent: true,
        width: '100%',
        label: '环比',
        className: null
      },
      {
        prop: 'frontGrossProfitYoy',
        key: 'frontGrossProfitYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比',
        className: null
      }
    ]
  },
  {
    prop: 'sales-gross-profit',
    key: 'sales-gross-profit',
    label: '销售毛利(元)',
    children: [
      {
        prop: 'salesGrossProfit',
        key: 'salesGrossProfit',
        width: '100%',
        label: '销售毛利'
      },
      {
        prop: 'salesGrossProfitBudgetAchievingRate',
        key: 'salesGrossProfitBudgetAchievingRate',
        markStyle: true,
        toPercent: true,
        width: '100%',
        label: '预算达成率',
        className: null
      },
      {
        prop: 'salesGrossProfitMom',
        key: 'salesGrossProfitMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'salesGrossProfitYoy',
        key: 'salesGrossProfitYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比',
        className: null
      }
    ]
  },
  {
    prop: 'front-desk-gross-margin',
    key: 'front-desk-gross-margin',
    label: '前台毛利率',
    children: [
      {
        prop: 'frontGrossProfitRate',
        key: 'frontGrossProfitRate',
        markStyle: true,
        toPercent: true,
        width: '100%',
        label: '前台毛利率',
        className: null
      },
      {
        prop: 'frontGrossProfitRateBudgetAchievingRate',
        key: 'frontGrossProfitRateBudgetAchievingRate',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '预算达成率',
        className: null
      },
      {
        prop: 'frontGrossProfitRateMom',
        key: 'frontGrossProfitRateMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'frontGrossProfitRateYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        key: 'frontGrossProfitRateYoy',
        label: '同比',
        className: null
      }
    ]
  },
  {
    prop: 'sales-gross-profit-rate',
    key: 'sales-gross-profit-rate',
    label: '销售毛利率',
    children: [
      {
        prop: 'salesGrossProfitRate',
        key: 'salesGrossProfitRate',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '销售毛利率',
        className: null
      },
      {
        prop: 'salesGrossProfitRateBudgetAchievingRate',
        key: 'salesGrossProfitRateBudgetAchievingRate',
        width: '100%',
        markStyle: true,
        label: '预算达成率',
        className: null
      },
      {
        prop: 'salesGrossProfitRateMom',
        key: 'salesGrossProfitRateMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'salesGrossProfitRateYoy',
        key: 'salesGrossProfitRateYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比',
        className: null
      }
    ]
  },
  {
    prop: 'stock-amount',
    key: 'stock-amount',
    label: '库存金额(元)',
    children: [
      {
        prop: 'stockAmount',
        key: 'stockAmount',
        width: '100%',
        label: '库存金额'
      },
      {
        prop: 'stockAmountBudgetAchievingRate',
        key: 'stockAmountBudgetAchievingRate',
        markStyle: true,
        toPercent: true,
        width: '100%',
        label: '预算达成率',
        className: null
      },
      {
        prop: 'stockAmountMom',
        key: 'stockAmountMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比',
        className: null
      },
      {
        prop: 'stockAmountYoy',
        key: 'stockAmountYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比',
        className: null
      }
    ]
  },
  {
    prop: 'stockTurnoverDay',
    key: 'stockTurnoverDay',
    label: '库存周转天数',
    width: '150px'
  },
  {
    prop: 'customerConversionRate',
    key: 'customerConversionRate',
    markStyle: true,
    toPercent: true,
    label: '电商用户转换率',
    width: '150px',
    className: null
  },
  {
    prop: 'customerRepurchaseRate',
    key: 'customerRepurchaseRate',
    markStyle: true,
    toPercent: true,
    label: '用户复购率',
    width: '150px',
    className: null
  }
];

export default columns;
